﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Microsoft.Phone.Tasks;

namespace AllenHung.FeedReader
{
    public partial class AboutPage : PhoneApplicationPage
    {
        public AboutPage()
        {
            InitializeComponent();
        }

        private void RateButtonClick(object sender, RoutedEventArgs e)
        {
            MarketplaceReviewTask ratingTask = new MarketplaceReviewTask();
            try
            {
                ratingTask.Show();
            }
            catch (Exception) { /* No one cares */ }
        }

        private void ContactButtonClick(object sender, RoutedEventArgs e)
        {
            EmailComposeTask emailComposeTask = new EmailComposeTask();

            emailComposeTask.Subject = "Feed Reader feedback:-";
            //emailComposeTask.Body = "message body";
            emailComposeTask.To = "hohoanghung2010@hotmail.com";

            emailComposeTask.Show();
        }
    }
}